<template>
<view>
<!-- header -->
<view class="header">
	<text>今日付款金额（元）</text>
	<text>0.00</text>
	<view class="info">
		<view>
			<text>浏览人数</text>
			<text>0</text>
		</view>
		<view>
			<text>付款订单数</text>
			<text>0</text>
		</view>
		<view>
			<text>付款件数</text>
			<text>0</text>
		</view>
	</view>
</view>
<!-- 九宫格 -->
<view class="main">
	<navigator class="block" url="../guan/guan">
		<image src="/static/remao_shop/img/mineShop/1.png" class="img"></image>
		<text>店铺管理</text>
	</navigator>
	<navigator class="block" url="../commodity/commodity">
		<image src="/static/remao_shop/img/mineShop/2.png" class="img"></image>
		<text>商品管理</text>
	</navigator>
	<view class="block" @tap="toOrderOne">
		<image src="/static/remao_shop/img/mineShop/3.png" class="img"></image>
		<text>订单管理</text>
	</view>
	<view class="block">
		<image src="/static/remao_shop/img/mineShop/4.png" class="img"></image>
		<text>数据统计</text>
	</view>
	<navigator class="block" url="../money/money">
		<image src="/static/remao_shop/img/mineShop/5.png" class="img"></image>
		<text>资产</text>
	</navigator>
	<navigator class="block" url="../ewm/ewm">
		<image src="/static/remao_shop/img/mineShop/6.png" class="img"></image>
		<text>店铺二维码</text>
	</navigator>
</view>

<view class="text">PC端管理网址</view>
</view>
</template>

<script>
import api from "../../../api";
var app = getApp();

export default {
  data() {
    return {
      user_id: ''
    };
  },

  components: {},
  props: {},

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function () {
    wx.getStorage({
      key: 'userId',
      success: res => {
        this.setData({
          user_id: res.data
        });
      }
    });
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {},

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {},

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {},

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    wx.stopPullDownRefresh();
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {},

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {},
  methods: {
    // 订单路由
    toOrderOne() {
      wx.navigateTo({
        url: '../../packageB/order/order?status=0&userId=' + this.user_id
      });
    }

  }
};
</script>
<style>
@import "./mineShop.css";
</style>